package edu.zju.gis.dldsj.dao;

import edu.zju.gis.dldsj.base.BaseMapper;
import edu.zju.gis.dldsj.entity.DataVisit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageVisitMapper extends BaseMapper<DataVisit, Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(DataVisit record);

    int insertSelective(DataVisit record);

    DataVisit selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DataVisit record);

    int updateByPrimaryKey(DataVisit record);

    DataVisit selectByDataId(String dataId);

    List<DataVisit> selectByDataIdList(List<String> dataIdList);

    List<DataVisit> selectByVisitAsc(@Param("offset") int offset, @Param("size") int size);

    List<DataVisit> selectByVisitDesc(@Param("offset") int offset, @Param("size") int size);
}